<?php
namespace app\admin\model;

use think\Model;

class BlogGuestBook extends Model
{
    public static function getGuestBooks()
    {
        $map['status'] = 1;
        $data = self::where($map)
        ->field('id,comment,author,time')
        ->paginate(15, true);

        return $data;
    }
}
